package com.ccc.orm.util;

import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/**
 * Orm Bean 工具类
 * 对于{@link org.apache.commons.beanutils.BeanUtils}装饰者模式
 *
 * @author charry
 * @version 0.1
 * @since 2019/6/30 19:03
 */
public class OrmBeanUtils extends BaseUtils{

    private OrmBeanUtils(){

    }

    public static void setProperty(Object bean, String name, Object value) throws InvocationTargetException, IllegalAccessException {
        BeanUtils.setProperty(bean, name, value);
    }
}
